ACPI: add support for x2APIC ACPI extensions
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 12:52:18 +0000 (13:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 12:52:18 +0000 (13:52 +0100)
commitb3625d1e2c5815e6d65a47197bebeae2061153ce
tree0b81045610df333d54d1e17b5d081ca08560b362
parent1652d36bbe2108109159bf62ec11be2736351c02
ACPI: add support for x2APIC ACPI extensions

All logical processors with APIC ID values of 255 and greater will
have their APIC reported through Processor X2APIC structure (type-9
entry type) and all logical processors with APIC ID less than 255 will
have their APIC reported through legacy Processor Local APIC (type-0
entry type) only. This is the same case even for NMI structure
reporting.

The Processor X2APIC Affinity structure provides the association
between the X2APIC ID of a logical processor and the proximity domain
to which the logical processor belongs.

This patch adds 2 new subtables to MADT and one new subtable to SRAT.

This patch also changes x86_acpiid_to_apicid from u8 to u32 for x2APIC
ID, and changes mp_register_lapic to accept 32-bit id. But there are
still some 8-bit apic id hardcode and assumptions in Xen code, it
needs to be fixed in future.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/arch/x86/acpi/boot.c
xen/arch/x86/mpparse.c
xen/arch/x86/srat.c
xen/drivers/acpi/numa.c
xen/drivers/acpi/tables.c
xen/include/acpi/actbl1.h
xen/include/asm-x86/acpi.h
xen/include/asm-x86/mpspec.h
xen/include/xen/acpi.h